{% extends 'layout.html' %}

{% block content %}

	<div class="container">
		{#要上传一定要加:enctype="multipart/form-data"#}
		<form method="post" enctype="multipart/form-data">
			{% csrf_token %}
			<input type="text" name="username">
			<input type="file" name="avatar">
			<input type="submit" value="提交">
		</form>

	</div>


{% endblock %}